package cn.wp.ewallet.wallet.web.controller;

import cn.wp.common.core.Wp;
import cn.wp.common.core.dto.WpResult;
import cn.wp.common.core.model.WpPage;
import cn.wp.common.core.web.annotation.ClearInterceptor;
import cn.wp.common.core.web.interceptor.LoginInterceptor;
import cn.wp.ewallet.wallet.model.dto.RechargeLogDto;
import cn.wp.ewallet.wallet.model.dto.RechargeShqcLogDto;
import cn.wp.ewallet.wallet.service.RechargeShqcLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName RechargeShqcLogController
 * @Author ruixule
 * @Date 2020/1/16 21:11
 */
@RestController
@RequestMapping(Wp.WebContext + "/ewallet/wallet/recharge")
@Api(tags="SHQC充值记录")
public class RechargeShqcLogController {

    @Autowired
    private RechargeShqcLogService rechargeShqcLogService;
    @GetMapping("/get")
    @ApiOperation("查询充值记录")
    public WpResult getRechargeShqcLogs(RechargeLogDto rechargeLogDto, WpPage wpPage){
        return new WpResult().success(rechargeShqcLogService.getAllRechargeLog(rechargeLogDto,wpPage));
    }
}
